package com.jewelry.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jewelry.entity.OrderItem;
import com.jewelry.entity.OrderItemDTO;
import com.jewelry.service.OrderItemService;
import com.jewelry.mapper.OrderItemMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author LZL
* @description 针对表【t_order_item】的数据库操作Service实现
* @createDate 2024-03-21 20:53:04
*/
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem>
    implements OrderItemService {

    @Resource
    OrderItemMapper orderItemMapper;

    @Override
    public List<OrderItemDTO> selectOrderItems(Long orderId) {
        return orderItemMapper.selectOrderItems(orderId);
    }
}




